/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Map;

import Actor.TileObject;
import java.awt.Image;
import java.awt.Rectangle;
import java.awt.Shape;
import java.io.IOException;

/**
 *
 * @author Eric-Standard
 */
public class WallTile extends StaticTile {

    public WallTile(Image image) {
        super(image);
        this.shapes = new Shape[1];
        this.shapes[0] = new Rectangle(0, 0, Map.TILE_WIDTH, Map.TILE_HEIGHT);
        this.hasObject = true;
    }

    public WallTile(String str) throws IOException {
        super(str);
        this.shapes = new Shape[1];
        this.shapes[0] = new Rectangle(0, 0, Map.TILE_WIDTH, Map.TILE_HEIGHT);
        this.hasObject = true;
    }

    @Override
    public Shape[] getShapes(int x, int y) {
        Rectangle r = (Rectangle) (this.shapes[0]);
        r.x = x;
        r.y = y;
        return shapes;
    }

    @Override
    public TileObject getTileObject() {
        return new MapWall();
    }
}
